import http from './http.js'


let qz = '/api/admin'; //测试 '/api/admin' //线上'/api/admin'
//4G相机设备列表分页
export const token = (params) => {
    return http.get(qz + '/token?token=' + params)
}
export const layerList = (params) => {
    return http.get(qz + '/layer/layerList?areaId=' + params)
}
export const devicePage = (params) => {
    return http.get(qz + '/cameraDevice/realtime/devicePage' + params)
}

export const cameraDevicePage = (params) => {
    return http.get(qz + '/cameraDevice/camera/devicePage' + params)
}

export const todayImg = (params) => {
    return http.get(qz + '/cameraDevice/realtime/todayImg' + params)
}

export const layDevices = (params) => {
    return http.get(qz + '/cameraDevice/realtime/layDevices?areaId=' + params)
}

export const mapDataInfo = (params) => {
    return http.get(qz + '/cameraDevice/realtime/mapDataInfo' + params)
}

export const groupImgPage = (params) => {
    return http.get(qz + '/cameraDevice/info/groupImgPage' + params)
}

export const runningCondition = (params) => {
    return http.get(qz + '/cameraDevice/info/runningCondition' + params)
}

export const cameralayinfo = (params) => {
    return http.get(qz + '/cameraDevice/info/deviceLayInfo' + params)
}

export const updateDevice = (params) => {
    return http.post(qz + '/cameraDevice/info/updateDevice', params)
}

export const CameraWorker = (params) => {
    return http.get(qz + '/cameraDevice/info/getCameraWorker?areaId=' + params)
}

export const DeviceImage = (params) => {
    return http.post(qz + '/cameraDevice/info/uploadDeviceImage', params)
}

export const delDeviceImage = (params) => {
    return http.del(qz + '/cameraDevice/info/delDeviceImage' + params)
}

export const delGroupImg = (params) => {
    return http.del(qz + '/cameraDevice/info/delGroupImg' + params)
}

export const ImeiAll = (params) => {
    return http.get(qz + '/cameraDevice/realtime/getImeiAll?areaId=' + params)
}

export const CardIdAll = (params) => {
    return http.get(qz + '/cameraDevice/camera/getCardIdAll?areaId=' + params)
}

export const GroupsPage = (params) => {
    return http.get(qz + '/cameraDevice/identify/getGroupsPage' + params)
}

export const LatinName = (params) => {
    return http.get(qz + '/cameraDevice/getLatinName?keywords=' + params)
}

export const queryByInput = (params) => {
    return http.get(qz + '/cameraDevice/queryByInput?input=' + params)
}

export const multipleSave = (params) => {
    return http.post(qz + '/cameraDevice/identify/multipleSave', params)
}

export const device4GPage = (params) => {
    return http.get(qz + '/cameraDevice/manage/device4GPage' + params)
}

export const cameraEnvirPage = (params) => {
    return http.get(qz + '/cameraDevice/manage/cameraEnvirPage' + params)
}

export const lDevice = (params) => {
    return http.get(qz + '/cameraDevice/manage/layDevices?' + params)
}

export const layDevice = (params) => {
    return http.post(qz + '/cameraDevice/realtime/layDevice', params)
}

export const recovDevice = (params) => {
    return http.post(qz + '/cameraDevice/realtime/recovDevice', params)
}

export const identifyPage = (params) => {
    return http.get(qz + '/cameraDevice/realtime/identifyPage' + params)
}

export const identifyInfo = (params) => {
    return http.get(qz + '/cameraDevice/realtime/identifyInfo?areaId=' + params)
}

export const cameraidentifyInfo = (params) => {
    return http.get(qz + '/cameraDevice/camera/identifyInfo?areaId=' + params)
}

export const delImg = (params) => {
    return http.del(qz + '/cameraDevice/info/delImg' + params)
}

export const updateImageGroup = (params) => {
    return http.get(qz + '/cameraDevice/identify/updateImageGroup?id=' + params)
}

export const Folders = (params) => {
    return http.get(qz + '/stars/getFolders' + params)
}

export const StarsImage = (params) => {
    return http.post(qz + '/stars/addStarsImage', params)
}

export const delStarsImage = (params) => {
    return http.del(qz + '/stars/delStarsImage' + params)
}

export const Wangge = (params) => {
    return http.get(qz + '/cameraDevice/realtime/getWangge?areaId=' + params)
}

export const identifyCount = (params) => {
    return http.get(qz + '/cameraDevice/realtime/identifyCount?areaId=' + params)
}

export const cameraidentifyCount = (params) => {
    return http.get(qz + '/cameraDevice/camera/identifyCount?areaId=' + params)
}

export const quickIdentify = (params) => {
    return http.post(qz + '/cameraDevice/info/quickIdentify', params)
}

export const uploadRealTimeFile = (params) => {
    return http.post(qz + '/cameraRevisionFile/uploadRealTimeFile', params)
}

export const uploadCameraFile = (params) => {
    return http.post(qz + '/cameraRevisionFile/uploadCameraFile', params)
}

export const cameraidentifyPage = (params) => {
    return http.get(qz + '/cameraDevice/camera/identifyPage' + params)
}

export const InvalidPhotos = (params) => {
    return http.get(qz + '/cameraDevice/getInvalidPhotos' + params)
}

export const delImgBatch = (params) => {
    return http.del(qz + '/cameraDevice/info/delImgBatch', params)
}

export const recycleBinPage = (params) => {
    return http.get(qz + '/cameraDevice/recycleBinPage' + params)
}

export const InvalidPhotosInfo = (params) => {
    return http.get(qz + '/cameraDevice/getInvalidPhotosInfo' + params)
}

export const recover = (params) => {
    return http.get(qz + '/cameraDevice/recycleBin/recover?id=' + params)
}

export const delrecycImg = (params) => {
    return http.del(qz + '/cameraDevice/recycleBin/delImg?id=' + params)
}

export const identifyResult = (params) => {
    return http.get(qz + '/cameraDevice/identifyResult' + params)
}

export const identifyResultInfo = (params) => {
    return http.get(qz + '/cameraDevice/identifyResultInfo' + params)
}

export const addFolder = (params) => {
    return http.post(qz + '/stars/addFolder', params)
}

export const updateFolder = (params) => {
    return http.post(qz + '/stars/updateFolder', params)
}

export const delFolder = (params) => {
    return http.del(qz + '/stars/delFolder?id=' + params)
}

export const StarsImages = (params) => {
    return http.get(qz + '/stars/getStarsImages?id=' + params)
}

export const dataCount = (params) => {
    return http.get(qz + '/statistics/dataCount?areaId=' + params)
}

export const speciesStatistics = (params) => {
    return http.get(qz + '/statistics/speciesStatistics' + params)
}

export const Grids = (params) => {
    return http.get(qz + '/statistics/getGrids?areaId=' + params)
}

export const Gnqh = (params) => {
    return http.get(qz + '/statistics/getGnqh?areaId=' + params)
}

export const GridsData = (params) => {
    return http.get(qz + '/statistics/getGridsData' + params)
}

export const GridsMediaPage = (params) => {
    return http.get(qz + '/statistics/getGridsMediaPage' + params)
}

export const areaData = (params) => {
    return http.get(qz + '/statistics/getAreaData' + params)
}

export const areaMediaPage = (params) => {
    return http.get(qz + '/statistics/getAreaMediaPage' + params)
}

export const loaltionData = (params) => {
    return http.get(qz + '/statistics/getLoaltionData?cameraEnvirId=' + params)
}

export const locationMediaPage = (params) => {
    return http.get(qz + '/statistics/getLocationMediaPage' + params)
}

export const smtLayCameraCount = (params) => {
    return http.get(qz + '/statistics/smtLayCameraCount' + params)
}
export const downLoadCameras = (params) => {
    return http.get(qz + '/export/downLoadCameras' + params)
}